#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include <hpdf.h>
#include <fstream>
#include <string>
#include <stdexcept>
#include <codecvt>
#include <locale>

#include <iostream>
#include "ft2build.h"
#include FT_FREETYPE_H
#include <set>
#include <codecvt>
#include <locale>
#include <numeric>
#include <vector>

#include <QDebug>

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    void generate_pdf_file(const std::set<std::string> &char_set, const char *ttf_file_path, const char *output_file_path);
    std::set<std::string> get_char_vector_from_ttf(const char *ttf_file_path);

private slots:
    void on_btn_pdf_clicked();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
